package com.youlai.boot.modules.banner.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.modules.common.base.BfBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;

@Data
@TableName("bf_banner")
@EqualsAndHashCode(callSuper = true)
public class Banner extends BfBaseEntity {
    @TableField("title")
    @Schema(description = "标题")
    private String title;

    @TableField("image_url")
    @Schema(description = "图片URL")
    private String imageUrl;

    @TableField("type")
    @Schema(description = "类型, 1:App首页顶部，2: 区域顶部 area")
    private Integer type;

    @TableField("area_id")
    @Schema(description = "所属区域ID, type=2时有效")
    private Long areaId;

    @TableField("link_type")
    @Schema(description = "链接目标类型, 1: 商品, 2:展会, 3:系统通知")
    private Integer linkType;

    @TableField("link_id")
    @Schema(description = "链接目标 ID")
    private Long linkId;

    @TableField("sort")
    @Schema(description = "排序")
    private Integer sort;

    @TableField("show_flag")
    @Schema(description = "是否显示")
    private Integer showFlag;
}
